Developer --> Technical Publications
PATHHardware Documentation > USB Devices > Mac OS USB DDK API Reference


USBAbortPipeByReference

The USBAbortPipeByReference function aborts operations on a specified pipe or the device's default pipe 0.

OSStatus USBAbortPipeByReference(USBReference ref);

--> ref
Pipe reference, or device reference for implicit default pipe 0.

All outstanding transactions on the pipe are returned with a kUSBAborted status. The state of the pipe is not affected.

After this function is called, the device's endpoint needs to be synchronized with the host's endpoint. See Data Toggle Synchronization for information about how to accomplish endpoint data toggle synchronization.

Errors returned by the USBAbortPipeByReference function include:

kUSBUnknownPipeErr
-6997 pipe reference specified is unknown

© 1999 Apple Computer, Inc.

Previous | Back Up One Level | Next | Show Frames | Hide Frames